<?php

require '../conn.php';

require 'config.php';

require '../inc/function.php';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="../css/admin.css" type="text/css" />

<script type="text/javascript" src="inc/function.js"></script>

<script type="text/javascript" src="../fy_ckeditor/ckeditor.js"></script>

</head>

<body>

<?php

if ($act=='modify'){

  
 	$ysimg1=$_POST['ysimg1'];
 	$ysimg2=$_POST['ysimg2'];
 	$ysimg3=$_POST['ysimg3'];
 	$ysimg4=$_POST['ysimg4'];
 	$ysimg5=$_POST['ysimg5'];
 	$ysimg6=$_POST['ysimg6'];
 	$ysimg7=$_POST['ysimg7'];
 	$ysimg8=$_POST['ysimg8'];
 
   	$ystit1=$_POST['ystit1'];
 	$ystit2=$_POST['ystit2'];
 	$ystit3=$_POST['ystit3'];
 	$ystit4=$_POST['ystit4'];
 	$ystit5=$_POST['ystit5'];
 	$ystit6=$_POST['ystit6'];
 	$ystit7=$_POST['ystit7'];
 	$ystit8=$_POST['ystit8'];

 	 

	$sql="update ".$language."_youshi set 

 	ysimg1='$ysimg1',
	ysimg2='$ysimg2',
	ysimg3='$ysimg3',
	ysimg4='$ysimg4',
	ysimg5='$ysimg5',
	ysimg6='$ysimg6',
	ysimg7='$ysimg7',
	ysimg8='$ysimg8',
	 ystit1='$ystit1',
	ystit2='$ystit2',
	ystit3='$ystit3',
	ystit4='$ystit4',
	ystit5='$ystit5',
	ystit6='$ystit6',
	ystit7='$ystit7',
	ystit8='$ystit8'
	 

	 where id=1";

	mysql_query($sql) or die(mysql_error($sql));

	Msg('','');

}

$query=mysql_query('select * from '.$language.'_youshi where id=1',$conn);

$row=mysql_fetch_array($query);

?>

<div id="container">

	<div class="edit">

		<h1>八大优势<a href="javascript:location.reload();">刷新</a></h1>

		<form name="form1" method="post" action="?act=modify">

	    <table width="100%" border="0" cellpadding="0" cellspacing="0">

        <tr>

            <td class="edit_title">优势1图标：</td>

            <td><input type="text" name="ysimg1" id="ysimg1" class="inputtext" value="<?php echo $row['ysimg1'] ?>"  size="50" maxlength="50"  />
            &nbsp;(图片尺寸：70x60)            <iframe src="../upload_fy.php?file_type=0&file_id=ysimg1" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

          </tr>

                  <tr>

          <td class="edit_title">优势1文字：</td>
          <td><input class="inputtext"  type="text" name="ystit1" value="<?php echo $row['ystit1'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
                 
                 
                    <tr>

            <td class="edit_title">优势2图标：</td>

            <td><input type="text" name="ysimg2" id="ysimg2" class="inputtext" value="<?php echo $row['ysimg2'] ?>"  size="50" maxlength="50"  />
            &nbsp;(图片尺寸：70x60)            <iframe src="../upload_fy.php?file_type=0&file_id=ysimg2" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

          </tr>

                  <tr>

          <td class="edit_title">优势2文字：</td>
          <td><input class="inputtext"  type="text" name="ystit2" value="<?php echo $row['ystit2'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
             <tr>

            <td class="edit_title">优势3图标：</td>

            <td><input type="text" name="ysimg3" id="ysimg3" class="inputtext" size="50" value="<?php echo $row['ysimg3'] ?>"  maxlength="50"  />
            &nbsp;(图片尺寸：70x60)            <iframe src="../upload_fy.php?file_type=0&file_id=ysimg3" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

          </tr>

                  <tr>

          <td class="edit_title">优势3文字：</td>
          <td><input class="inputtext"  type="text" name="ystit3" value="<?php echo $row['ystit3'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
             <tr>

            <td class="edit_title">优势4图标：</td>

            <td><input type="text" name="ysimg4" id="ysimg4" class="inputtext" size="50" value="<?php echo $row['ysimg4'] ?>"  maxlength="50"  />
            &nbsp;(图片尺寸：70x60)            <iframe src="../upload_fy.php?file_type=0&file_id=ysimg4" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

          </tr>

                  <tr>

          <td class="edit_title">优势4文字：</td>
          <td><input class="inputtext"  type="text" name="ystit4" value="<?php echo $row['ystit4'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
             <tr>

            <td class="edit_title">优势5图标：</td>

            <td><input type="text" name="ysimg5" id="ysimg5" class="inputtext" size="50" value="<?php echo $row['ysimg5'] ?>"  maxlength="50"  />
            &nbsp;(图片尺寸：70x60)            <iframe src="../upload_fy.php?file_type=0&file_id=ysimg5" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

          </tr>

                  <tr>

          <td class="edit_title">优势5文字：</td>
          <td><input class="inputtext"  type="text" name="ystit5" value="<?php echo $row['ystit5'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
             <tr>

            <td class="edit_title">优势6图标：</td>

            <td><input type="text" name="ysimg6" id="ysimg6" class="inputtext" size="50" value="<?php echo $row['ysimg6'] ?>"  maxlength="50"  />
            &nbsp;(图片尺寸：70x60)            <iframe src="../upload_fy.php?file_type=0&file_id=ysimg6" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

          </tr>

                  <tr>

          <td class="edit_title">优势6文字：</td>
          <td><input class="inputtext"  type="text" name="ystit6" value="<?php echo $row['ystit6'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
             <tr>

            <td class="edit_title">优势7图标：</td>

            <td><input type="text" name="ysimg7" id="ysimg7" class="inputtext" size="50" value="<?php echo $row['ysimg7'] ?>"  maxlength="50"  />
            &nbsp;(图片尺寸：70x60)            <iframe src="../upload_fy.php?file_type=0&file_id=ysimg7" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

          </tr>

                  <tr>

          <td class="edit_title">优势7文字：</td>
          <td><input class="inputtext"  type="text" name="ystit7" value="<?php echo $row['ystit7'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
             <tr>

            <td class="edit_title">优势8图标：</td>

            <td><input type="text" name="ysimg8" id="ysimg8" class="inputtext" size="50" maxlength="50" value="<?php echo $row['ysimg8'] ?>"   />
            &nbsp;(图片尺寸：70x60)            <iframe src="../upload_fy.php?file_type=0&file_id=ysimg8" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

          </tr>

                  <tr>

          <td class="edit_title">优势8文字：</td>
          <td><input class="inputtext"  type="text" name="ystit8" value="<?php echo $row['ystit8'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
        	<tr>

				<td class="edit_title" height="40">&nbsp;</td>

				<td><input type="submit" name="button" class="button" value="保存配置" /></td>

        	</tr>
        </table>

	</form>

	</div>

</div>

</body>

</html>